//
//  XJ_ApplayResultViewController.m
//  XunJieProject
//
//  Created by xue on 2018/6/11.
//  Copyright © 2018年 Soowin. All rights reserved.
//

#import "XJ_ApplayResultViewController.h"

@interface XJ_ApplayResultViewController ()
@property (weak, nonatomic) IBOutlet UIButton *backBtn;
@property (weak, nonatomic) IBOutlet UILabel *resultTitle;
@property (weak, nonatomic) IBOutlet UILabel *resultValue;

@end

@implementation XJ_ApplayResultViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
    if ([self.resultType isEqualToString:@"0"]) {
        
        _resultTitle.text =@"提现申请成功";
    }else if ([self.resultType isEqualToString:@"1"]){
        _resultTitle.text =@"订单已提交，请留意余额变动";
    }
    
    self.resultValue.text =_ValueStr;
}

-(void)creatMainUI{
    
    self.nav_titleLabel.text =@"结果";
    self.nav_backButton.hidden =YES;
    self.nav_backImg.hidden =YES;
    self.view.backgroundColor =WhiteColor;
    _backBtn.backgroundColor =Color_ZhuSeDiao;
    _backBtn.layer.cornerRadius =4;
    _backBtn.layer.masksToBounds =YES;
    
    
}
- (IBAction)Click_btn:(id)sender {
    
    
//    if ([self.resultType isEqualToString:@"0"]) {
//
        [self.navigationController popToRootViewControllerAnimated:YES];
//    }else if ([self.resultType isEqualToString:@"1"]){
//        [self.navigationController popViewControllerAnimated:YES];
//    }
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
